//
//  YYQRCodeView.h
//  XinMi
//
//  Created by 蓓蕾 on 2021/8/11.
//  Copyright © 2021 Yang. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef void(^BackQRCodeURL)(NSString  *stringValue);
typedef void(^Backfailure)(void);

NS_ASSUME_NONNULL_BEGIN

@interface YYQRCodeView : UIView

/**扫描成功回调*/
@property (nonatomic,copy) BackQRCodeURL backQRCodeURL;
/**扫描失败回调*/
@property (nonatomic,copy) Backfailure backfailure;

/** 开始扫描 */
-(void)starScaning;

/** 开启与关闭闪光灯 */
-(BOOL)openFlashLamp;

+ (instancetype)new NS_UNAVAILABLE;

@end

NS_ASSUME_NONNULL_END
